<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
	<head th:include="include/includeboot:: header"></head>
	<title>数据源编辑</title>
</head>
<body>
	<div class="m-portlet">
		<div class="m-portlet__head">
			<div class="m-portlet__head-caption">
				<div class="m-portlet__head-title">
					<span class="m-portlet__head-icon m--hide">
					<i class="la la-gear"></i>
					</span>
					<h3 class="m-portlet__head-text">
						编辑数据源
					</h3>
				</div>
			</div>
		</div>
		<form class="m-form m-form--fit m-form--label-align-left m-form--group-seperator-dashed" id="defaultForm" method="post">
			<div class="form-group" style="display:none;">
				<label class="col-lg-3 control-label">数据库信息</label>
				<div class="col-lg-6">
					<input class="form-control" type="hidden" th:value="${xt_dbinfo_id}" id="xt_dbinfo_id" name="xt_dbinfo_id" placeholder="请输入数据库信息表">
				</div>
			</div>
			<div class="form-group m-form__group row">
				<label class="col-lg-3 control-label">数据源</label>
				<div class="col-lg-6">
					<input class="form-control" type="text" maxlength="255" id="xt_dbinfoName" name="xt_dbinfoName" placeholder="请输入数据源">
				</div>
			</div>
			<div class="form-group m-form__group row">
				<label class="col-lg-3 control-label">数据库用户名</label>
				<div class="col-lg-6">
					<input class="form-control" type="text" maxlength="255" id="xt_dbinfoUName" name="xt_dbinfoUName" placeholder="请输入数据库用户名">
				</div>
			</div>
			<div class="form-group m-form__group row">
				<label class="col-lg-3 control-label">密码</label>
				<div class="col-lg-6">
					<input class="form-control" type="text" maxlength="255" id="xt_dbinfoPwd" name="xt_dbinfoPwd" placeholder="请输入数据库密码">
				</div>
			</div>
			<div class="form-group m-form__group row">
				<label class="col-lg-3 control-label">ip（备份数据库使用的ip地址）</label>
				<div class="col-lg-6">
					<input class="form-control" type="text" maxlength="255" id="xt_dbinfoIp" name="xt_dbinfoIp" placeholder="请输入ip">
				</div>
			</div>
			<div class="form-group m-form__group row">
				<label class="col-lg-3 control-label">端口号</label>
				<div class="col-lg-6">
					<input class="form-control" type="text" maxlength="255"  id="xt_dbinfoPort" name="xt_dbinfoPort" placeholder="请输入端口号">
				</div>
			</div>
			<div class="form-group m-form__group row">
				<label class="col-lg-3 control-label">类型</label>
				<div class="col-lg-6">
					<select class="form-control" id="xt_dbinfoType" name="xt_dbinfoType">
						<option value="mysql" >mysql</option>
						<option value="Oracle">Oracle</option>
						<option value="Sqlserver">Sqlserver</option>
						<option value="db2">db2</option>
						<option value="syBase">syBase</option>
						<option value="Access">Access</option>
					</select>
				</div>
			</div>
			<div class="m-portlet__foot m-portlet__foot--fit">
				<div class="m-form__actions m-form__actions--right">
					<div class="row">
						<div class="col m--align-left">
							<button type="button" class="btn btn-success m-btn m-btn--icon" onclick="updateXtDbinfo()">
								<span>
									<i class="la la-save"></i>
									<span>保 存</span>
								</span>
							</button>
							<button type="button" class="btn btn-metal m-btn m-btn--icon m-btn--wide" onclick="goback()">
								<span>
									<i class="fa flaticon-logout"></i>
									<span>返 回</span>
								</span>
							</button>
						</div>
						<div class="col m--align-right">
							<a href="javascript:resetAll('defaultForm')" class="btn btn-accent m-btn m-btn--icon m-btn--wide">
								<span>
									<i class="fa fa-repeat"></i>
									<span>重 置</span>
								</span>
							</a>
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>
</body>
<div th:include="include/includeboot :: footer"></div>
<script type="text/javascript" src="../../../../view/xt-dbinfo/xt-dbinfo-update.js"></script>
</html>
